﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MobileGIS.Carto
{
    public class Fields:IFields
    {
        protected internal IClass m_class;

        public Fields()
        {
            this.m_class = null;
        }

        protected internal Fields(IFeatureClass Class)
        {
            this.m_class = (IClass)Class;
        }

        #region IFields Members

        public int FindField(string name)
        {
            for (int i = 0; i < this.FieldCount; i++)
            {
                if (this.GetField(i).Name.ToUpper() == name.ToUpper())
                    return i;
            }
            return -1;
        }

        public IField GetField(int index)
        {
            throw new NotImplementedException();
        }

        public int FieldCount
        {
            get { throw new NotImplementedException(); }
        }

        #endregion
    }
}
